# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: site-packages\Crypto\Random\OSRNG\fallback.py
__revision__ = "$Id$"
__all__ = ["PythonOSURandomRNG"]
import os
from .rng_base import BaseRNG


class PythonOSURandomRNG(BaseRNG):
    name = "<os.urandom>"

    def __init__(self):
        self._read = os.urandom
        BaseRNG.__init__(self)

    def _close(self):
        self._read = None


def new(*args, **kwargs):
    return PythonOSURandomRNG(*args, **kwargs)
